.projects-section {
  width: 100vw;
  height: 100vh;
  background: #181818;
  position: relative;
  overflow: visible;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.projects-header {
  padding: 2rem;
  margin-top: 80px;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  background: transparent;
}

.projects-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 60px;
  padding: 0;
  will-change: transform;
  padding-left: calc(50vw - 180px);
  padding-right: calc(50vw - 180px);
}

.project-card {
  width: 360px;
  flex: 0 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: none;
  will-change: transform;
  transform: scale(0.98);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card .ant-card-cover {
  overflow: hidden;
}

.project-card .ant-card-cover img {
  height: 240px;
  object-fit: cover;
  transform: scale(1.5);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px) scale(1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card:hover .ant-card-cover img {
  transform: scale(1);
}

.project-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tag {
  padding: 6px 16px;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 20px;
  font-size: 0.875rem;
  color: #1890ff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-tag:hover {
  background: #1890ff;
  color: white;
  transform: translateY(-2px);
}

.projects-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* 如果需要淡入效果，可以单独设置内容的透明度 */
.project-card .ant-card-meta-title,
.project-card .ant-card-meta-description {
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.project-card:hover .ant-card-meta-title,
.project-card:hover .ant-card-meta-description {
  opacity: 1;
}
